package cn.wss.flowable.common;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Params {

  private Map<String, Object> variables = new HashMap<>();

  public Params() {
  }

  public Params(Map<String, Object> variables) {
    this.variables = variables;
  }

  public boolean containsKey(String key) {
    return variables.containsKey(key);
  }

  public String get(String key) {
    return (String) variables.get(key);
  }

  public boolean getBoolean(String key) {
    return (boolean) variables.get(key);
  }

  public Set getSet(String key) {
    return (Set) variables.get(key);
  }

  public List getList(String key) {
    return (List) variables.get(key);
  }
}
